package com.qf.service.impl;

import com.qf.mapper.AirMapper;
import com.qf.pojo.AirPojo;
import com.qf.pojo.DistrictPojo;
import com.qf.service.AirService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AirServiceImpl implements AirService {
    @Autowired
    AirMapper airMapper;
    @Override
    public List<AirPojo> findAll(AirPojo airPojo) {
        return airMapper.findAll(airPojo);
    }

    @Override
    public void addair(AirPojo airPojo) {
        airMapper.addair(airPojo);
    }

    @Override
    public AirPojo selectBydis(int id) {
        return airMapper.selectBydis(id);
    }

    @Override
    public void updateair(AirPojo airPojo) {
    airMapper.updateair(airPojo);
    }

    @Override
    public void deleteair(int id ) {
        airMapper.deleteair(id);
    }

    @Override
    public List<DistrictPojo> selectall() {
        return airMapper.selectall();
    }

   /* @Override
    public List<AirPojo> slesctBYdisc(int district_id) {
        return airMapper.slesctBYdisc(district_id);
    }*/
}
